package demo2;
import demo1.Computer;
public class TestComputer {
    public static void main(String[] args) {
        Computer computer = new Computer("小米","R7","16","15.6");
        //System.out.println(computer.brand);   //报错，brand是default，不允许被其他包中的类访问
        System.out.println(computer.screen);
        //System.out.println(computer.cpu);   //报错，只能在Computer类中访问
    }
}

